PATCH
/
behavior
/
events
/
{eventId}
/
fulfill
curl --request PATCH \
  --url https://app.masivo.ai/api/storefront/v1/behavior/events/{eventId}/fulfill \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "type": "PURCHASE",
    "data": {},
    "fulfilled": true,
    "reserve": 123,
    "queue_message_id": "<string>",
    "rewarding_campaigns": [
      "<any>"
    ],
    "status": "PENDING",
    "result": {
      "wallet": {},
      "customer": {},
      "gift_card": [
        {
          "code": "<string>",
          "description": "<string>",
          "reward_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "expired_at": "2023-11-07T05:31:56Z",
          "rewarded_at": "2023-11-07T05:31:56Z",
          "redeemed_at": "2023-11-07T05:31:56Z"
        }
      ],
      "accumulations": [
        {
          "amount": 123,
          "reward_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "campaign_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "brand_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "issued_at": "2023-11-07T05:31:56Z",
          "expiration_date": "2023-11-07T05:31:56Z",
          "reservation_expires_at": "2023-11-07T05:31:56Z"
        }
      ],
      "redemptions": [
        {
          "amount": 123,
          "reward_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "campaign_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "brand_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "issued_at": "2023-11-07T05:31:56Z",
          "expiration_date": "2023-11-07T05:31:56Z",
          "reservation_expires_at": "2023-11-07T05:31:56Z"
        }
      ],
      "transactions": [
        {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "brand_id": "<string>",
          "event_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "campaign_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "channel_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "store_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "funded_by": "MARKETING",
          "event_type": "PURCHASE",
          "reward_type": "POINTS",
          "reward_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "amount": 123,
          "cost": 123,
          "details": "<string>",
          "type": "ACCUMULATION",
          "receiver_id": "<string>",
          "sender_id": "<string>",
          "created_at": "2023-11-07T05:31:56Z",
          "issued_at": "2023-11-07T05:31:56Z",
          "attributes": {
            "line": {
              "amount": 123,
              "reward_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
              "campaign_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
              "brand_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
              "issued_at": "2023-11-07T05:31:56Z",
              "expiration_date": "2023-11-07T05:31:56Z",
              "reservation_expires_at": "2023-11-07T05:31:56Z"
            },
            "campaign_name": "<string>"
          },
          "metadata": {}
        }
      ],
      "customer_by_tier": [
        {}
      ]
    },
    "issued_at": "2023-11-07T05:31:56Z",
    "processing_at": "2023-11-07T05:31:56Z",
    "resolved_at": "2023-11-07T05:31:56Z",
    "cancelled_at": "2023-11-07T05:31:56Z",
    "expired_at": "2023-11-07T05:31:56Z",
    "reversed_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

eventId
string
required

The event unique identifier

Response

200
application/json

Event fulfilled

The response is of type object.